package com.atguigu.eduservice.client.Impl;

import com.atguigu.commonutils.ClientEntity.ClientMember;
import com.atguigu.eduservice.client.OrderClient;
import com.atguigu.eduservice.client.UserClient;
import org.springframework.stereotype.Component;

/*熔断器：远程调用失败执行的方法*/
@Component
public class OrderFileDegradeFeignClient implements OrderClient {

    @Override
    public boolean isBuyCourse(String memberId, String courseId) {
        System.out.println("根据用户id和课程id判断是否有这个订单失败~");
        return true;
    }
}